qx.Class.define("caraffa.forms.PacientesOSAnio",
{
	extend : qx.ui.form.ow.FormTab,

	construct : function ()
	{
		this.base(arguments, "PacientesOSAnio", "Est: OS. Pac. x año");
		
		this._grpChart = GC = new qx.ui.groupbox.GroupBox();
  		GC.setWidth(800);
  		GC.setLayout(new qx.ui.layout.Basic());
		
		this._cmbFecha = Fecha = new qx.ui.form.ow.ComboBox("Año a Mostrar:", [{value:"2011"},{value:"2010"}, {value:"2009", select:true}, {value:"2008"}, {value:"2007"}, {value:"2006"}, {value:"2005"}], true);
		this._imgChartPOA = POA = new qx.ui.basic.Image("");
		
		GC.add(Fecha, {left:0, top:0});
		GC.add(POA, {left:0, top:50});

		this._attachEvents();
		
		this.add(GC, {left:10, top:10});
		
		this._imgChartPOA.setSource("reports/PacientesOSAnio.php?anio=" + this._cmbFecha.getValue());
	},
	members :
	{
		_attachEvents : function ()
		{
			this._cmbFecha.addListener("changeValue", function ()
			{
				this._imgChartPOA.setSource("reports/PacientesOSAnio.php?anio=" + this._cmbFecha.getValue());
			}, this);
		}
	}
});